package com.jyxd.web.data.basic;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 医嘱使用记录表
 */
@Entity
@Table(name = "table_med_order_exec_record")
@Data
public class MedOrderExecRecord implements Serializable {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    /**
     * 医嘱Id
     */
    @Column(name = "order_no")
    private String orderNo;

    /**
     * 记录时间
     */
    @Column(name = "data_time")
    private Date dataTime;


    /**
     * 操作人code
     */
    @Column(name = "operator_code")
    private String operatorCode;

    /**
     * 状态
     */
    @Column(name = "status")
    private Integer status;

    /**
     * 医嘱同步次数
     */
    @Column(name = "sync_count")
    private Integer syncCount;
}
